package net.sppan.base.enumType;


/**
 *
 * 券码状态
 */
public enum CodeType {

    Free_one("Free_one","免费咖啡券"),
    Vip("Vip","VIP咖啡券"),
    Buy_one_send_one("Buy_one_send_one","买一送一咖啡券");

    private String name;

    private String desc;


     CodeType(String name , String desc){
         this.name = name;
         this.desc = desc;
    }

    public static String getDescByName(String name){
         return CodeType.valueOf(name).desc;
    }

}
